package com.qf.ssm.mapper;

import com.qf.ssm.po.Customer;
import com.qf.ssm.po.EmergencyContact;
import com.qf.ssm.po.Invoice;
import com.qf.ssm.qo.EmergencyContactQO;
import com.qf.ssm.qo.InvoiceQO;
import com.qf.ssm.vo.CustomerSelectVO;
import com.qf.ssm.vo.CustomerUpdateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chengqiang
 * @Create 2024-01-02-14:28
 * @Description:
 */
public interface CustomerMapper {
    // 添加客户
     Integer insertCustomer(@Param("customer") Customer customer);

     Integer insertEmergencyContact(@Param("emergencyContact") EmergencyContact emergencyContact);
     Integer insertInvoice(@Param("invoice") Invoice invoice);

     // List<CustomerVO> selectAll();
     // List<CustomerSelectVO> selectAll();
     //
     // 根据条件查询客户信息
     List<CustomerSelectVO> selectByCustomer(@Param("customer")Customer customer,@Param("characters")Integer characters);

     CustomerUpdateVO selectByIdCustomer(Integer id);

     // 修改客户信息
     Integer updateCustomer(@Param("customer") Customer customer);
     // 修改啊紧急联系人
     Integer updateEmergencyContact(@Param("emergencyContact") EmergencyContact emergencyContact);
     // 修改发票
     Integer updateInvoice(@Param("inovice") Invoice invoice);

}
